/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.mes.manager;

import com.xy.biz.mes.domain.bo.ManufactureTaskBO;
import com.xy.biz.mes.domain.bo.ManufactureTaskEquipmentBO;
import com.xy.biz.mes.domain.bo.ManufactureTaskGoodsBO;
import com.xy.biz.mes.domain.query.*;
import com.xy.biz.mes.domain.bo.ManufactureTaskRecordBO;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author zsp
 * @date 2022-1-6
 */
public interface ManufactureTaskManager {

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllManufactureTask(Collection<ManufactureTaskBO> collection);

	/**
	 * 更新
	 *
	 * @param manufactureTaskBO
	 */
	int updateManufactureTask(ManufactureTaskBO manufactureTaskBO);
	int updateAllManufactureTask(Collection<ManufactureTaskBO> collection);

	/**
	 * 删除
	 *
	 * @param manufactureTaskId
	 */
	int deleteManufactureTask(Long manufactureTaskId);

	int deleteManufactureTaskRecord(Collection<Long> collection);
	int deleteManufactureTaskGoods(Collection<Long> collection);

	/**
	 * 查找一个
	 *
	 * @param query
	 * @return
	 */
	ManufactureTaskBO getManufactureTask(ManufactureTaskByIdQuery query);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<ManufactureTaskBO> listManufactureTaskById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<ManufactureTaskBO> listManufactureTask(ManufactureTaskQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countManufactureTask(ManufactureTaskQuery query);
	int countManufactureTaskGoods(ManufactureTaskGoodsQuery query);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllManufactureTaskRecord(Collection<ManufactureTaskRecordBO> collection);
	int saveAllManufactureTaskEquipment(Collection<ManufactureTaskEquipmentBO> collection);
	int saveAllManufactureTaskGoods(Collection<ManufactureTaskGoodsBO> collection);

	int checkManufactureTask(ManufactureTaskBO manufactureTaskBO);

	/**
	 * 更新多个
	 *
	 * @param collection
	 */
	int updateAllManufactureTaskRecord(Collection<ManufactureTaskRecordBO> collection);
	int updateAllManufactureTaskEquipment(Collection<ManufactureTaskEquipmentBO> collection);
	int updateAllManufactureTaskGoods(Collection<ManufactureTaskGoodsBO> collection);
	int updateAllManufactureTaskGoodsResult(Collection<ManufactureTaskGoodsBO> collection);

	/**
	 * 查找多条
	 *
	 * @param query
	 * @return
	 */
	List<ManufactureTaskRecordBO> listManufactureTaskRecord(ManufactureTaskRecordQuery query);
	List<ManufactureTaskEquipmentBO> listManufactureTaskEquipment(ManufactureTaskEquipmentQuery query);
	List<ManufactureTaskGoodsBO> listManufactureTaskGoods(ManufactureTaskGoodsQuery query);

}
